<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Pipi</title>
		<script type="text/javascript">

			function setIndex(i){
				document.versions.index.value = i;
				document.versions.submit();
			}
		</script>
	</head>
	<body>
		<form action="" method="post" name="versions">
			<input type="hidden" name="index"/>
		</form>
		{% for page in pages %}
			<a href="#" onclick="javascript:setIndex({{forloop.counter0}});">{{ page.date|date:"j/m/Y - H:i" }}</a> {{ page.content|escape }}<br>
		{% endfor %}
	</body>
</html>
